home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_062 / hackiconii_source / mydebug.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  973b  |  27 lines

  1. /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
  2. * |_o_o|\\ Copyright (c) 1987 The Software Distillery.  All Rights Reserved *
  3. * |. o.| ||          Written by Doug Walker                                 *
  4. * | .  | ||          The Software Distillery                                *
  5. * | o  | ||          235 Trillingham Lane                                   *
  6. * |  . |//           Cary, NC 27511                                         *
  7. * ======             BBS:(919)-471-6436                                     *
  8. \* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
  9.  
  10.  
  11. /* DEBUG MUST BE DEFINED FOR REAL ELSEWHERE!!! */
  12.  
  13. #ifdef MYDEBUG
  14.  
  15. extern int debug;
  16.  
  17. #define BUG(lvl, args) {if(lvl<=debug){printf args ; fflush(stdout);}}
  18. #define BUGGETC(lvl) {if(lvl<=debug)\
  19.                        {printf("Hit return to continue: ");(void)getchar();}}
  20.  
  21. #else
  22.  
  23. #define BUG(lvl, args) {}
  24. #define BUGGETC(lvl) {}
  25.  
  26. #endif MYDEBUG
  27.